package com.gopay.checkorder.manager.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.gopay.checkorder.dao.TpasOrderDAO;
import com.gopay.checkorder.manager.TpasOrderManager;
import com.gopay.common.domain.bank.tpas.TpasOrder;

@Service("tpasOrderManager")
public class TpasOrderManagerImpl implements TpasOrderManager {

    @Resource(name="tpasOrderDAO")
    private TpasOrderDAO tpasOrderDAO;
    @Override
    public int getCheckWachgeOrderCount() {
        return tpasOrderDAO.getCheckWachgeOrderCount();
        
    }
    @Override
    public List<TpasOrder> getCheckWachgeOrder(int pageIndex, int pageSize) {
        return tpasOrderDAO.getCheckWachgeOrder(pageIndex, pageSize);
    }
    @Override
    public int lock(TpasOrder order) {
        return tpasOrderDAO.lock(order);
    }
    @Override
	public int unlock(TpasOrder order) {
    	return tpasOrderDAO.unlock(order);
	}
    @Override
    public void update(TpasOrder order) {
        tpasOrderDAO.update(order);
    }
	@Override
	public int updateEnterAccountFail(String orderid, String status) {
		return tpasOrderDAO.updateInAcctFail(orderid, status); 
	}

}
